package icu.qx.common.feign;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import icu.qx.common.pojo.SysCode;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

@Component
@FeignClient(value = "yyj-mes-sys")
public interface SysCodeFeign {

    /**
     * 通过关联表单查询详细信息
     */
    @GetMapping("/sys/code")
    R<SysCode> getInfoByCodeTableName(@RequestParam("codeTableName") String codeTableName);

    /**
     * 修改系统编码
     */
    @PutMapping("sys/code")
    R<Integer> edit(@Validated @RequestBody SysCode sysCode);
}
